<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isErrorPage="true" %>
<html>
<head>
    <title>异常处理页面</title>
</head>
<body>
    <h2>错误页面</h2>
    <div style="color: red;">
        <c:choose>
            <c:when test="${not empty msg}">
                ${msg}
            </c:when>
            <c:when test="${not empty exp}">
                异常信息: ${exp}
            </c:when>
            <c:otherwise>
                系统发生未知错误，请联系管理员。
            </c:otherwise>
        </c:choose>
    </div>
    <br/>
    <a href="${pageContext.request.contextPath}/tologin">返回登录页面</a>
</body>
</html>